package org.imaginedays.java.design.patter.observer;

import java.awt.List;
import java.util.ArrayList;

public abstract class Subject {
	
	private ArrayList<Observer> observers = new ArrayList<Observer>();
	
	public void addObserver(Observer observer){
		observers.add(observer);
	}
	
	public void deleteObserver(Observer observer){
		observers.remove(observer);
	}
	
//	public void notify(){
//		if (observers.size()>0) {
//			for (Observer observer : observers) {
//				observer.update();
//			}
//		}
//	}

}
